package com.huawei;

import java.util.Scanner;

public class HJ011 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int input = scanner.nextInt();
        String number_str = String.valueOf(input);

        StringBuilder reverse = new StringBuilder(number_str).reverse();
        System.out.println(reverse);


    }
}
